import { defineStore } from "pinia";
import { computed, ref } from "vue";


export const useCountStore = defineStore('count', () => {
    let sum = ref(1)
    let Num = ref(1)

    function increase() {
        sum.value += Num.value
    }
    function decrease() {
        sum.value -= Num.value
    }
    const bigSum = computed(()=>sum.value * 10

    )
    return { sum, Num, increase, decrease ,bigSum}
})